resource "google_compute_global_network_endpoint" "<%= ctx[:primary_resource_id] %>" {
  global_network_endpoint_group = google_compute_global_network_endpoint_group.neg.name
  fqdn       = "www.example.com"
  port       = 90
}

resource "google_compute_global_network_endpoint_group" "neg" {
  name                  = "<%= ctx[:vars]['neg_name'] %>"
  default_port          = "90"
  network_endpoint_type = "INTERNET_FQDN_PORT"
}
